﻿using System;
using MpSoft.Library.BUSS.Settings;

namespace MpSoft.Library.BUSS.Settings
{
    public class GeneralSettings
    {
        //SEO
        public static string SeoTitlle { get { return SettingBUSS.GetSettingValue("seo.title"); } }
        public static string SeoKeyword { get { return SettingBUSS.GetSettingValue("seo.keyword"); } }
        public static string SeoDescription { get { return SettingBUSS.GetSettingValue("seo.description"); } }
        //Banner
        public static string BannerFile { get { return SettingBUSS.GetSettingValue("banner.file"); } }
        public static string BannerLink { get { return SettingBUSS.GetSettingValue("banner.link"); } }
        public static string BannerWidth { get { return SettingBUSS.GetSettingValue("banner.width"); } }
        public static string BannerHeight { get { return SettingBUSS.GetSettingValue("banner.height"); } }
        //Email
        public static string EmailEmail { get { return SettingBUSS.GetSettingValue("email.email"); } }
        public static string EmailPassword { get { return SettingBUSS.GetSettingValue("email.password"); } }
        public static int EmailPort { get { int value; int.TryParse(SettingBUSS.GetSettingValue("email.port"), out value); return value; } }
        public static string EmailHost { get { return SettingBUSS.GetSettingValue("email.host"); } }
        //Footer
        public static string FooterContent { get { return SettingBUSS.GetSettingValue("footer.content"); } }
        //Contact
        public static string ContactContent { get { return SettingBUSS.GetSettingValue("contact.content"); } }
    }
}
